package collector;

import java.util.List;

import org.springframework.beans.factory.BeanNameAware;

public class NetCollector implements collector,BeanNameAware {
	private String cname;
	
	private List<String> favs;

	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	
	public NetCollector(String cname) {
		super();
		
		this.cname = cname;
		System.out.println("cname:"+cname);
	}
	
	public NetCollector(){
		System.out.println("net constructor......");
	}
	@Override
	public void collect() {
		System.out.println("Net collect...");

	}
	
	public void init(){
		System.out.println("Net is init.....");
	}
	
	public void destroy(){
		System.out.println("Net is destroy....");
	}
	@Override
	public void setBeanName(String name) {
		System.out.println(name+"**********************");
		
	}

}
